package Job02;

import java.util.Scanner;

public class mimalei {
    public String YH01;
    public String MM01;

    public void YHMM(){
        Scanner input = new Scanner(System.in);
        do {
            System.out.print("请输入用户名:");
            YH01 = input.next();
            System.out.print("请输入密码:");
            MM01 = input.next();
            if (YH01.equals("liujixin")&&MM01.equals("110110")){
                System.out.println("请输入新的密码:");
                MM01 = input.next();
                System.out.println("修改密码成功,您的新密码为:" +MM01);
            }else {
                System.out.println("用户和密码不匹配!您没有权限更新管理员信息.");
            }
        }while (true);
    }
}
